package com.bruip.ch01;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/22
 * @Description:
 */
public class Test07_Predicate {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        coll.add("hello");
        coll.add("world");
        coll.add("briup");
        coll.add("abc");
        coll.add("cool");
        coll.removeIf(s -> s.contains("o"));
        System.out.println(coll);
    }
}
